package cn.tuling.controller;

import cn.tuling.entity.DO.Product;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/product")
public class ProductController {

    @GetMapping("/{productId}")
    public Product getProduct(@PathVariable Integer productId) {
        System.out.println("我被调用了");
        return new Product(productId, "我giao");
    }

}
